<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>内部js</title>
</head>
<body>
    <!-- 
        内部js：在html的script标签中编写js代码，script标签一般放在body的末尾
    -->
    <div>div1</div>
    <p>段落</p>

    <script>
        alert(11111)
    </script>
</body>
</html>